package cn.gok.hotelback.service.impl;

import cn.gok.hotelback.entity.RoomNumber;
import cn.gok.hotelback.mapper.RoomNumberMapper;
import cn.gok.hotelback.service.RoomNumberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class RoomNumberServiceImpl implements RoomNumberService {
    @Autowired
    private RoomNumberMapper roomNumberMapper;

    @Override
    public List<RoomNumber> findFreeByType(Integer roomTypeId) {
        return roomNumberMapper.selectFreeByType(roomTypeId);
    }
} 